package cn.lysj.framework.common.validate.annotation;

import cn.lysj.framework.common.validate.constant.Message;
import cn.lysj.framework.common.validate.validate.NumberValidate;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author ww
 * @date 2018-08-22 9:32
 * @Description 数字类型转换验证
 */
@Target({ElementType.FIELD,ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Number {
    Class<?> clazz() default NumberValidate.class;
    String message() default Message.NUMBER;
    Class<?>[] groups() default { };
}
